package io.github.smileinmotion.oplog.service.impl;

import io.github.smileinmotion.oplog.model.OperLogInfo;
import io.github.smileinmotion.oplog.service.IOpLogCallService;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * 默认日志回调
 *
 * @author Mr.spc
 */
@Slf4j
public class DefaultOpLogCallServiceImpl implements IOpLogCallService {

    /**
     * 租户
     *
     * @return String
     */
    @Override
    public String getTenant() {
        return "";
    }

    /**
     * 操作者
     *
     * @return String
     */
    @Override
    public String getOperator() {
        return "";
    }

    /**
     * 日志记录
     *
     * @param operLogInfos 日志对象s
     */
    @Override
    public void record(List<OperLogInfo> operLogInfos) {
        for (OperLogInfo operLogInfo : operLogInfos) {
            log.info("LOG: {}", operLogInfo);
        }
    }


}
